/*
 *
 * (c) Copyright Ascensio System Limited 2010-2023
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/


@import "../../../../skins/default/params.less";

.tariff-page {
    width: 1000px;
}

/****************************************\
    TariffSaas
\****************************************/

.saas-tariff-page {
    margin: 0;

    .header-1 {
        font-weight: 400;
        font-size: 24px;
        line-height: 32px;
    }

    .header-2 {
        font-weight: 400;
        font-size: 20px;
        line-height: 30px;
    }

    .header-3 {
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
    }

    .header-4 {
        font-weight: 600;
        font-size: 14px;
        line-height: 24px;
    }

    .button {
        width: 240px;
        padding: 12px 30px 12px 30px;
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
        box-sizing: border-box;
    }

    .back-button {
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        padding: 8px 16px 8px 34px;
        margin: 0 24px 0 24px;
        background: url("img/arrow.svg") no-repeat 0 center;
        cursor: pointer;
        display: inline-block;

        &.display-none {
            display: none;
        }
    }

    .line {
        border-top: 1px solid @saas-tariffs-line;
    }

    .contact-info {
        font-weight: 400;
        font-size: 13px;
        line-height: 20px;
        margin: 0 24px 0 24px;
        width: 640px;
    }

    .main-header {
        margin: 6px 24px 0 24px;
    }

    .trial-days-left {
        font-size: 14px;
        font-weight: 600;
        line-height: 24px;
        margin: 0 24px 8px 24px;
    }

    .current-tariff {
        font-weight: 400;
        font-size: 14px;
        line-height: 22px;
        list-style: none;
        padding: 0;
        margin: 16px 24px 0 24px;
        max-width: 640px;
        display: inline-block;

        li {
            margin: 0 0 8px 0;

            &.last {
                margin: 40px 0 -24px 0;
            }
        }

        b {
            font-weight: 600;
        }

        a {
            color: @textColor;
            font-weight: 600;
        }

        .progress-wrapper {
            background-color: #D7D7D7;
            height: 2px;
            overflow: hidden;
            border-radius: 2px;
            margin-top: 4px;
        }

        .progress-value {
            background: #2DA7DB;
            height: inherit;
            width: 0;
        }

        &.display-none {
            display: none;
        }
    }

    .available-tariff-plans {
        margin: 40px 0 32px 0;

        .header-1 {
            margin: 6px 24px 32px 24px;
            text-align: center;
        }
    }

    .available-tariffs {
        width: 680px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
    }

    .available-tariff {
        padding: 16px 30px 78px 30px;
        width: 320px;
        border: 1px solid #C4C4C4;
        box-sizing: border-box;
        border-radius: 8px;
        text-align: center;
        position: relative;

        .header-2 {
            margin: 0 0 8px 0;
        }

        .header-4 {
            margin: 0 0 16px 0;
        }

        .line {
            border-color: #C4C4C4;
        }

        &.active, &.active .line {
            border-color: #2DA7DB;
        }

        .button {
            position: absolute;
            bottom: 30px;
            left: 38px;
        }
    }

    .available-tariff-features {
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        margin: 16px 0 32px 0;
        text-align: left;
        list-style: none;
        padding: 0;
        overflow: hidden;
    }

    .tariff-feature {
        padding: 8px 16px 8px 34px;
        background: url("img/plus.svg") no-repeat 0 center;
    }

    .subscription {
        margin: 40px 0 32px 0;
        display: flex;
        align-items: flex-start;

        &.display-none {
            display: none;
        }
    }

    .subscription-dscr {
        padding: 24px;
        width: 640px;
        background: @subscription-dscr;
        border-radius: 8px;
        margin: 0 24px 0 0;

        .header-1 {
            margin: 0 0 8px 0;
        }

        .header-3 {
            margin: 32px 0 0 0;
        }

        .header-4 {
            margin: 0 0 24px 0;
        }
    }

    .subscription-dscr-items {
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        margin: 16px 0 0 0;
        list-style: none;
        padding: 0;
    }

    .subscription-dscr-item {
        padding: 8px 16px 8px 34px;
        background: url("img/plus.svg") no-repeat 0 center;

        &.people {
            background-image: url("img/people.svg");
        }

        &.storage {
            background-image: url("img/storage.svg");
        }

        &.infinity {
            background-image: url("img/infinity.svg");
        }

        &.branding {
            background-image: url("img/branding.svg");
        }

        &.ldap {
            background-image: url("img/ldap.svg");
        }

        &.cloud {
            background-image: url("img/cloud.svg");
        }

        &.history {
            background-image: url("img/history.svg");
        }

        &.puzzle {
            background-image: url("img/puzzle.svg");
        }

        &.mail {
            background-image: url("img/mail.svg");
        }
    }

    .subscription-calc {
        padding: 24px;
        width: 240px;
        background: @subscription-dscr;
        border-radius: 8px;
        position: relative;

        label {
            font-size: 13px;
            margin: 0 0 8px 0;
            display: block;
        }

        input[type=number] {
            width: 240px;
            height: 34px;
            padding: 8px 12px 8px 16px;
            box-sizing: border-box;
            border-radius: 2px;
            font-size: 14px;
            margin: 0 0 32px 0;
        }

        input[type=number]::-webkit-inner-spin-button {
            opacity: 1;
        }

        input:invalid {
            box-shadow: none;
        }

        select {
            width: 240px;
            height: 34px;
            padding: 0px 16px 0px 16px;
            box-sizing: border-box;
            border-radius: 2px;
            font-size: 14px;
            margin: 0 0 32px 0;
        }

        .header-3 {
            margin: 0 0 16px 0;
        }

        .line {
            margin: 16px 0 8px 0;
        }

        &.requiredFieldError {
            select {
                border-color: @requiredField-col;
            }

            .selected-tariff-total {
                margin: 0 0 44px 0;
            }

            span.requiredErrorText {
                height: 44px;
                margin-top: -44px;
                font-size: 12px;
                line-height: 18px;
                float: none;
            }

            .requiredErrorText {
                &.display-none {
                    display: none;
                }

                a {
                    color: @requiredField-col;
                }
            }
        }

        .blocker {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }
    }

    .subscription-period {
        width: 240px;
        min-height: 40px;
        background: @body-color;
        border: 1px solid @subscription-period-bor;
        box-sizing: border-box;
        border-radius: 3px;
        display: flex;
        margin: 0 0 24px 0;

        &.display-none {
            display: none;
        }
    }

    .subscription-period-item {
        font-size: 14px;
        width: 80px;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        user-select: none;

        &.center {
            border: 1px solid @subscription-period-bor;
            border-top: none;
            border-bottom: none;
        }

        &.active {
            background: #2DA7DB;
            color: #fff;
        }

        .sale {
            font-size: 11px;
            text-align: center;
        }
    }

    .selected-tariff {
        font-weight: 400;
        font-size: 13px;
        line-height: 22px;
        margin: 22px 0 0 0;
        padding: 0;
        list-style: none;

        li {
            margin: 0 0 8px 0;
        }

        b {
            font-weight: 600;
            float: right;
        }
    }

    .selected-tariff-total {
        font-weight: 400;
        font-size: 14px;
        line-height: 22px;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin: 0 0 28px 0;

        .sale {
            text-decoration: line-through;
            color: #9E9B9B;
        }

        .total {
            font-weight: 600;
            font-size: 26px;
            line-height: 38px;
            margin: 0 0 0 12px;
        }
    }

    .subscription-customer-info {
        margin: 40px 0 0 -24px;
        padding: 0 0 0 32px;
        background: url("img/info.svg") no-repeat 4px 4px;
        position: absolute;
        width: 265px;
        box-sizing: border-box;
    }
}

/****************************************\
    Currency
\****************************************/
#currencyPanel {
    text-align: right;
    margin: 0 0 -28px 0;
}

#currencySelector {
    cursor: pointer;
    display: inline-block;
    padding: 5px 15px 5px 10px;
    position: relative;
}

#currencySelector:after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #9d9d9d;
    content: "";
    height: 0;
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
}

#currencyList,
#currencyHelp {
    display: none;
    text-align: left;
}